<?php

include_once ('com/alibaba/openapi/client/entity/SDKDomain.class.php');
include_once ('com/alibaba/openapi/client/entity/ByteArray.class.php');
include_once ('ProductKeywordsSearchParam/AlibabaOceanOpenplatformBizFenxiaoResultCompanyInfo.class.php');
include_once ('ProductKeywordsSearchParam/AlibabaOceanOpenplatformBizFenxiaoResultOfferHistoryTradeInfo.class.php');
include_once ('ProductKeywordsSearchParam/AlibabaOceanOpenplatformBizFenxiaoResultOfferImage.class.php');
include_once ('ProductKeywordsSearchParam/AlibabaOceanOpenplatformBizFenxiaoResultOfferPrice.class.php');
include_once ('ProductKeywordsSearchParam/AlibabaOceanOpenplatformBizFenxiaoResultOfferTradeServiceInfo.class.php');
include_once ('ProductKeywordsSearchParam/AlibabaOceanOpenplatformBizFenxiaoResultQualityEvaluation.class.php');

class AlibabaOceanOpenplatformBizProductResultFenXiaoSearchOfferModel extends SDKDomain {

       	
    private $companyInfo;
    
        /**
    * @return 
    */
        public function getCompanyInfo() {
        return $this->companyInfo;
    }
    
    /**
     * 设置     
     * @param AlibabaOceanOpenplatformBizFenxiaoResultCompanyInfo $companyInfo     
     * 参数示例：<pre></pre>     
     * 此参数必填     */
    public function setCompanyInfo(AlibabaOceanOpenplatformBizFenxiaoResultCompanyInfo $companyInfo) {
        $this->companyInfo = $companyInfo;
    }
    
        	
    private $isJxhy;
    
        /**
    * @return 
    */
        public function getIsJxhy() {
        return $this->isJxhy;
    }
    
    /**
     * 设置     
     * @param Boolean $isJxhy     
     * 参数示例：<pre></pre>     
     * 此参数必填     */
    public function setIsJxhy( $isJxhy) {
        $this->isJxhy = $isJxhy;
    }
    
        	
    private $jyFlag;
    
        /**
    * @return 
    */
        public function getJyFlag() {
        return $this->jyFlag;
    }
    
    /**
     * 设置     
     * @param Boolean $jyFlag     
     * 参数示例：<pre></pre>     
     * 此参数必填     */
    public function setJyFlag( $jyFlag) {
        $this->jyFlag = $jyFlag;
    }
    
        	
    private $loginId;
    
        /**
    * @return 
    */
        public function getLoginId() {
        return $this->loginId;
    }
    
    /**
     * 设置     
     * @param String $loginId     
     * 参数示例：<pre></pre>     
     * 此参数必填     */
    public function setLoginId( $loginId) {
        $this->loginId = $loginId;
    }
    
        	
    private $offerHistoryTradeInfo;
    
        /**
    * @return 
    */
        public function getOfferHistoryTradeInfo() {
        return $this->offerHistoryTradeInfo;
    }
    
    /**
     * 设置     
     * @param array include @see AlibabaOceanOpenplatformBizFenxiaoResultOfferHistoryTradeInfo[] $offerHistoryTradeInfo     
     * 参数示例：<pre></pre>     
     * 此参数必填     */
    public function setOfferHistoryTradeInfo(AlibabaOceanOpenplatformBizFenxiaoResultOfferHistoryTradeInfo $offerHistoryTradeInfo) {
        $this->offerHistoryTradeInfo = $offerHistoryTradeInfo;
    }
    
        	
    private $offerId;
    
        /**
    * @return 
    */
        public function getOfferId() {
        return $this->offerId;
    }
    
    /**
     * 设置     
     * @param Long $offerId     
     * 参数示例：<pre></pre>     
     * 此参数必填     */
    public function setOfferId( $offerId) {
        $this->offerId = $offerId;
    }
    
        	
    private $offerImage;
    
        /**
    * @return 
    */
        public function getOfferImage() {
        return $this->offerImage;
    }
    
    /**
     * 设置     
     * @param AlibabaOceanOpenplatformBizFenxiaoResultOfferImage $offerImage     
     * 参数示例：<pre></pre>     
     * 此参数必填     */
    public function setOfferImage(AlibabaOceanOpenplatformBizFenxiaoResultOfferImage $offerImage) {
        $this->offerImage = $offerImage;
    }
    
        	
    private $offerPrice;
    
        /**
    * @return 
    */
        public function getOfferPrice() {
        return $this->offerPrice;
    }
    
    /**
     * 设置     
     * @param AlibabaOceanOpenplatformBizFenxiaoResultOfferPrice $offerPrice     
     * 参数示例：<pre></pre>     
     * 此参数必填     */
    public function setOfferPrice(AlibabaOceanOpenplatformBizFenxiaoResultOfferPrice $offerPrice) {
        $this->offerPrice = $offerPrice;
    }
    
        	
    private $offerSuttleWeight;
    
        /**
    * @return 
    */
        public function getOfferSuttleWeight() {
        return $this->offerSuttleWeight;
    }
    
    /**
     * 设置     
     * @param String $offerSuttleWeight     
     * 参数示例：<pre></pre>     
     * 此参数必填     */
    public function setOfferSuttleWeight( $offerSuttleWeight) {
        $this->offerSuttleWeight = $offerSuttleWeight;
    }
    
        	
    private $offerTradeServiceInfo;
    
        /**
    * @return 
    */
        public function getOfferTradeServiceInfo() {
        return $this->offerTradeServiceInfo;
    }
    
    /**
     * 设置     
     * @param array include @see AlibabaOceanOpenplatformBizFenxiaoResultOfferTradeServiceInfo[] $offerTradeServiceInfo     
     * 参数示例：<pre></pre>     
     * 此参数必填     */
    public function setOfferTradeServiceInfo(AlibabaOceanOpenplatformBizFenxiaoResultOfferTradeServiceInfo $offerTradeServiceInfo) {
        $this->offerTradeServiceInfo = $offerTradeServiceInfo;
    }
    
        	
    private $offerWeight;
    
        /**
    * @return 
    */
        public function getOfferWeight() {
        return $this->offerWeight;
    }
    
    /**
     * 设置     
     * @param String $offerWeight     
     * 参数示例：<pre></pre>     
     * 此参数必填     */
    public function setOfferWeight( $offerWeight) {
        $this->offerWeight = $offerWeight;
    }
    
        	
    private $qualityEvaluation;
    
        /**
    * @return 
    */
        public function getQualityEvaluation() {
        return $this->qualityEvaluation;
    }
    
    /**
     * 设置     
     * @param AlibabaOceanOpenplatformBizFenxiaoResultQualityEvaluation $qualityEvaluation     
     * 参数示例：<pre></pre>     
     * 此参数必填     */
    public function setQualityEvaluation(AlibabaOceanOpenplatformBizFenxiaoResultQualityEvaluation $qualityEvaluation) {
        $this->qualityEvaluation = $qualityEvaluation;
    }
    
        	
    private $quantityBegin;
    
        /**
    * @return 
    */
        public function getQuantityBegin() {
        return $this->quantityBegin;
    }
    
    /**
     * 设置     
     * @param Integer $quantityBegin     
     * 参数示例：<pre></pre>     
     * 此参数必填     */
    public function setQuantityBegin( $quantityBegin) {
        $this->quantityBegin = $quantityBegin;
    }
    
        	
    private $subject;
    
        /**
    * @return 
    */
        public function getSubject() {
        return $this->subject;
    }
    
    /**
     * 设置     
     * @param String $subject     
     * 参数示例：<pre></pre>     
     * 此参数必填     */
    public function setSubject( $subject) {
        $this->subject = $subject;
    }
    
        	
    private $unit;
    
        /**
    * @return 
    */
        public function getUnit() {
        return $this->unit;
    }
    
    /**
     * 设置     
     * @param String $unit     
     * 参数示例：<pre></pre>     
     * 此参数必填     */
    public function setUnit( $unit) {
        $this->unit = $unit;
    }
    
        	
    private $userId;
    
        /**
    * @return 
    */
        public function getUserId() {
        return $this->userId;
    }
    
    /**
     * 设置     
     * @param Long $userId     
     * 参数示例：<pre></pre>     
     * 此参数必填     */
    public function setUserId( $userId) {
        $this->userId = $userId;
    }
    
    	
	private $stdResult;
	
	public function setStdResult($stdResult) {
		$this->stdResult = $stdResult;
					    			    			if (array_key_exists ( "companyInfo", $this->stdResult )) {
    				$companyInfoResult=$this->stdResult->{"companyInfo"};
    				$this->companyInfo = new AlibabaOceanOpenplatformBizFenxiaoResultCompanyInfo();
    				$this->companyInfo->setStdResult ( $companyInfoResult);
    			}
    			    		    				    			    			if (array_key_exists ( "isJxhy", $this->stdResult )) {
    				$this->isJxhy = $this->stdResult->{"isJxhy"};
    			}
    			    		    				    			    			if (array_key_exists ( "jyFlag", $this->stdResult )) {
    				$this->jyFlag = $this->stdResult->{"jyFlag"};
    			}
    			    		    				    			    			if (array_key_exists ( "loginId", $this->stdResult )) {
    				$this->loginId = $this->stdResult->{"loginId"};
    			}
    			    		    				    			    			if (array_key_exists ( "offerHistoryTradeInfo", $this->stdResult )) {
    			$offerHistoryTradeInfoResult=$this->stdResult->{"offerHistoryTradeInfo"};
    				$object = json_decode ( json_encode ( $offerHistoryTradeInfoResult ), true );
					$this->offerHistoryTradeInfo = array ();
					for($i = 0; $i < count ( $object ); $i ++) {
						$arrayobject = new ArrayObject ( $object [$i] );
						$AlibabaOceanOpenplatformBizFenxiaoResultOfferHistoryTradeInfoResult=new AlibabaOceanOpenplatformBizFenxiaoResultOfferHistoryTradeInfo();
						$AlibabaOceanOpenplatformBizFenxiaoResultOfferHistoryTradeInfoResult->setArrayResult($arrayobject );
						$this->offerHistoryTradeInfo [$i] = $AlibabaOceanOpenplatformBizFenxiaoResultOfferHistoryTradeInfoResult;
					}
    			}
    			    		    				    			    			if (array_key_exists ( "offerId", $this->stdResult )) {
    				$this->offerId = $this->stdResult->{"offerId"};
    			}
    			    		    				    			    			if (array_key_exists ( "offerImage", $this->stdResult )) {
    				$offerImageResult=$this->stdResult->{"offerImage"};
    				$this->offerImage = new AlibabaOceanOpenplatformBizFenxiaoResultOfferImage();
    				$this->offerImage->setStdResult ( $offerImageResult);
    			}
    			    		    				    			    			if (array_key_exists ( "offerPrice", $this->stdResult )) {
    				$offerPriceResult=$this->stdResult->{"offerPrice"};
    				$this->offerPrice = new AlibabaOceanOpenplatformBizFenxiaoResultOfferPrice();
    				$this->offerPrice->setStdResult ( $offerPriceResult);
    			}
    			    		    				    			    			if (array_key_exists ( "offerSuttleWeight", $this->stdResult )) {
    				$this->offerSuttleWeight = $this->stdResult->{"offerSuttleWeight"};
    			}
    			    		    				    			    			if (array_key_exists ( "offerTradeServiceInfo", $this->stdResult )) {
    			$offerTradeServiceInfoResult=$this->stdResult->{"offerTradeServiceInfo"};
    				$object = json_decode ( json_encode ( $offerTradeServiceInfoResult ), true );
					$this->offerTradeServiceInfo = array ();
					for($i = 0; $i < count ( $object ); $i ++) {
						$arrayobject = new ArrayObject ( $object [$i] );
						$AlibabaOceanOpenplatformBizFenxiaoResultOfferTradeServiceInfoResult=new AlibabaOceanOpenplatformBizFenxiaoResultOfferTradeServiceInfo();
						$AlibabaOceanOpenplatformBizFenxiaoResultOfferTradeServiceInfoResult->setArrayResult($arrayobject );
						$this->offerTradeServiceInfo [$i] = $AlibabaOceanOpenplatformBizFenxiaoResultOfferTradeServiceInfoResult;
					}
    			}
    			    		    				    			    			if (array_key_exists ( "offerWeight", $this->stdResult )) {
    				$this->offerWeight = $this->stdResult->{"offerWeight"};
    			}
    			    		    				    			    			if (array_key_exists ( "qualityEvaluation", $this->stdResult )) {
    				$qualityEvaluationResult=$this->stdResult->{"qualityEvaluation"};
    				$this->qualityEvaluation = new AlibabaOceanOpenplatformBizFenxiaoResultQualityEvaluation();
    				$this->qualityEvaluation->setStdResult ( $qualityEvaluationResult);
    			}
    			    		    				    			    			if (array_key_exists ( "quantityBegin", $this->stdResult )) {
    				$this->quantityBegin = $this->stdResult->{"quantityBegin"};
    			}
    			    		    				    			    			if (array_key_exists ( "subject", $this->stdResult )) {
    				$this->subject = $this->stdResult->{"subject"};
    			}
    			    		    				    			    			if (array_key_exists ( "unit", $this->stdResult )) {
    				$this->unit = $this->stdResult->{"unit"};
    			}
    			    		    				    			    			if (array_key_exists ( "userId", $this->stdResult )) {
    				$this->userId = $this->stdResult->{"userId"};
    			}
    			    		    		}
	
	private $arrayResult;
	public function setArrayResult($arrayResult) {
		$this->arrayResult = $arrayResult;
				    		    		if (array_key_exists ( "companyInfo", $this->arrayResult )) {
    		$companyInfoResult=$arrayResult['companyInfo'];
    			    			$this->companyInfo = new AlibabaOceanOpenplatformBizFenxiaoResultCompanyInfo();
    			    			$this->companyInfo->setStdResult ( $companyInfoResult);
    		}
    		    	    			    		    			if (array_key_exists ( "isJxhy", $this->arrayResult )) {
    			$this->isJxhy = $arrayResult['isJxhy'];
    			}
    		    	    			    		    			if (array_key_exists ( "jyFlag", $this->arrayResult )) {
    			$this->jyFlag = $arrayResult['jyFlag'];
    			}
    		    	    			    		    			if (array_key_exists ( "loginId", $this->arrayResult )) {
    			$this->loginId = $arrayResult['loginId'];
    			}
    		    	    			    		    		if (array_key_exists ( "offerHistoryTradeInfo", $this->arrayResult )) {
    		$offerHistoryTradeInfoResult=$arrayResult['offerHistoryTradeInfo'];
    			$this->offerHistoryTradeInfo = new AlibabaOceanOpenplatformBizFenxiaoResultOfferHistoryTradeInfo();
    			$this->offerHistoryTradeInfo->setStdResult ( $offerHistoryTradeInfoResult);
    		}
    		    	    			    		    			if (array_key_exists ( "offerId", $this->arrayResult )) {
    			$this->offerId = $arrayResult['offerId'];
    			}
    		    	    			    		    		if (array_key_exists ( "offerImage", $this->arrayResult )) {
    		$offerImageResult=$arrayResult['offerImage'];
    			    			$this->offerImage = new AlibabaOceanOpenplatformBizFenxiaoResultOfferImage();
    			    			$this->offerImage->setStdResult ( $offerImageResult);
    		}
    		    	    			    		    		if (array_key_exists ( "offerPrice", $this->arrayResult )) {
    		$offerPriceResult=$arrayResult['offerPrice'];
    			    			$this->offerPrice = new AlibabaOceanOpenplatformBizFenxiaoResultOfferPrice();
    			    			$this->offerPrice->setStdResult ( $offerPriceResult);
    		}
    		    	    			    		    			if (array_key_exists ( "offerSuttleWeight", $this->arrayResult )) {
    			$this->offerSuttleWeight = $arrayResult['offerSuttleWeight'];
    			}
    		    	    			    		    		if (array_key_exists ( "offerTradeServiceInfo", $this->arrayResult )) {
    		$offerTradeServiceInfoResult=$arrayResult['offerTradeServiceInfo'];
    			$this->offerTradeServiceInfo = new AlibabaOceanOpenplatformBizFenxiaoResultOfferTradeServiceInfo();
    			$this->offerTradeServiceInfo->setStdResult ( $offerTradeServiceInfoResult);
    		}
    		    	    			    		    			if (array_key_exists ( "offerWeight", $this->arrayResult )) {
    			$this->offerWeight = $arrayResult['offerWeight'];
    			}
    		    	    			    		    		if (array_key_exists ( "qualityEvaluation", $this->arrayResult )) {
    		$qualityEvaluationResult=$arrayResult['qualityEvaluation'];
    			    			$this->qualityEvaluation = new AlibabaOceanOpenplatformBizFenxiaoResultQualityEvaluation();
    			    			$this->qualityEvaluation->setStdResult ( $qualityEvaluationResult);
    		}
    		    	    			    		    			if (array_key_exists ( "quantityBegin", $this->arrayResult )) {
    			$this->quantityBegin = $arrayResult['quantityBegin'];
    			}
    		    	    			    		    			if (array_key_exists ( "subject", $this->arrayResult )) {
    			$this->subject = $arrayResult['subject'];
    			}
    		    	    			    		    			if (array_key_exists ( "unit", $this->arrayResult )) {
    			$this->unit = $arrayResult['unit'];
    			}
    		    	    			    		    			if (array_key_exists ( "userId", $this->arrayResult )) {
    			$this->userId = $arrayResult['userId'];
    			}
    		    	    		}
 
   
}
?>